<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('dics', function (Blueprint $table) {
            $table->id();
            $table->string('name')->nullable()->comment('字典类型名称');
            $table->string('code')->nullable()->comment('字典类型编码');
            $table->tinyInteger('istag')->default(1)->comment('是否为tag标签1:true，0:false');
            $table->unsignedInteger('order')->nullable()->comment('排序');
            $table->string('description')->nullable()->comment('描述');
            $table->integer('status')->comment('状态 1/正常 0/禁用');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('dics');
    }
};
